# -*- coding: utf-8 -*-

from aiohttp import web

a = 0

routes = web.RouteTableDef()


@routes.get('/')
async def hello(request):
    global a
    a += 1
    s = 'hello world! times = ' + str(a)
    return web.Response(text=s)


app = web.Application()
app.add_routes(routes)
web.run_app(app, host='127.0.0.1', port=8000)
